package br.com.naybee.client.views.add.menu.configuracao;

import br.com.naybee.client.views.add.configuracao.CadastrarConfiguracaoView;
import br.com.naybee.client.views.add.configuracao.CadastrarGrupoRepartimentoView;
import br.com.naybee.client.views.add.configuracao.CadastrarIconesView;
import br.com.naybee.client.views.add.configuracao.CadastrarPortasView;
import br.com.naybee.client.views.add.configuracao.CadastrarRepartimentoView;
import br.com.naybee.client.views.add.configuracao.CadastrarTipoAutomacaoView;
import br.com.naybee.client.views.base.Principal;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class MenuConfiguracaoView extends Composite {

	private static MenuUiBinder uiBinder = GWT.create(MenuUiBinder.class);

	interface MenuUiBinder extends UiBinder<Widget, MenuConfiguracaoView> {
	}

	public MenuConfiguracaoView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiHandler("btnGrupoRepartimento")
	public void onClickBtnGrupoRepartimento(ClickEvent envent) {
		Principal.get().add(new CadastrarGrupoRepartimentoView());
	}

	@UiHandler("btnIcone")
	public void onClickBtnIcone(ClickEvent envent) {
		Principal.get().add(new CadastrarIconesView());
	}

	@UiHandler("btnPorta")
	public void onClickBtnPorta(ClickEvent envent) {
		Principal.get().add(new CadastrarPortasView());
	}

	@UiHandler("btnTipoDeAutomacao")
	public void onClickBtnTipoDeAutomacao(ClickEvent envent) {
		Principal.get().add(new CadastrarTipoAutomacaoView());
	}

	@UiHandler("btnRepartimento")
	public void onClickBtnRepartimento(ClickEvent envent) {
		Principal.get().add(new CadastrarRepartimentoView());
	}

	@UiHandler("btnConfiguracao")
	public void onClickBtnConfiguracao(ClickEvent envent) {
		Principal.get().add(new CadastrarConfiguracaoView());
	}

}
